package com.lifang.framework.beans.factory.event;

import com.lifang.framework.context.ApplicationContext;
import com.lifang.framework.context.config.ApplicationEvent;

public class ApplicationContextEvent extends ApplicationEvent {

    /**
     * 构造原型事件
     */
    public ApplicationContextEvent(Object source) {
        super(source);
    }

    /**
     * 获取全局上下文
     */
    public final ApplicationContext getApplicationContext() {
        return (ApplicationContext) getSource();
    }

}
